package com.ybb.vue.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 防疫管理_告警记录
 * @TableName epm_alarm_notes
 */
@TableName(value ="epm_alarm_notes")
@Data
public class EpmAlarmNotes extends BaseEntity implements Serializable {

    /**
     * 告警规则名称
     */
    private String alarmName;

    /**
     * 告警类型，{0健康码黄码;1健康码红码;2健康码未知弹窗;3健康码未申领}
     */
    private String alarmType;

    /**
     * 告警内容
     */
    private String alarmContent;

    /**
     * 告警时间
     */
    @JsonSerialize(using=CustomDateTimeSerializer.class)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;

    /**
     * 通知对象
     */
    private String noticeObject;

    /**
     * 通知对象邮箱
     */
    private String email;

    /**
     * 异常居民姓名
     */
    private String residentName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}